#!/usr/bin/python

from vismach import *

### hal part:
#import hal
#c = hal.component("this_file_name")
#c.newpin("joint0", hal.HAL_FLOAT, hal.HAL_IN)  # create pins like this to control this drawing
#c.ready()

### Store tooltip coordinates system: 
tooltip = Capture()

### Create the tooltip objects
tool = Collection([tooltip,Box(-15, -15, -15, 15, 15, 15)])

### Here there should be the other linked objects from the tooltip to the base (see other examples)
 
### Store work coord system:
work = Capture()

### Define the model (which is made of all objects?):
model = Collection([work, tool])

### Finally the drawing cycle - from vismach.py:{def main(model, tool, work, size=10, hud=0, rotation_vectors=None, lat=0, lon=0)}
### size: is the camera zoom
### hud: should be to write on a semi-trasparent box inside the window
### lat and lon: are the rotation of the camera
main(model, tooltip, work, 30,0,0,-90,-90)

